package com.aaa.demo11;

/**
 * @author ${崔灿}
 * @date 2022/11/03 19:24
 **/

public class Test04 {
    public static void main(String[] args) {
        Swimming1 s =(o3,o4)-> {
            return o4+o3;
        };
            fun(s);
    }
    public static void fun(Swimming1 s) {
        s.swimming1(2,6);
    }
}

//这个就是函数式接口
@FunctionalInterface
interface  Swimming1{
    public int swimming1(int o3,int o4);
}